import dayjs from "dayjs";
import {sleep, toastInfo} from "../../utils/common";

Page({
    async submitOrder() {
        toastInfo("填写成功!")
        await sleep(1000)
        wx.navigateBack({delta: 1})


    }, data: {
        userName: undefined,
        status: undefined,
        time: undefined,
        device: undefined,
        station: undefined

    },
    onLoad: function (options) {
        let userInfo = JSON.parse(wx.getStorageSync("userInfo"));
        this.setData({userName: userInfo.name})
        let time = dayjs().format("YYYY-MM-DD HH:mm:ss");
        this.setData({time})
    }
});
